package com.mf.mapper;

import com.mf.entity.bo.PermissionByRoleBo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.heollhai.common.entity.request.publicRequest.PublicBindingIdRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 角色权限表
*
* @author mf
* @since 2024-08-06
*/
public interface PermissionByRoleMapper extends BaseMapper<PermissionByRoleBo> {
    /**
     * 根据角色id删除权限
     */
    void deleteByRoleId(Integer id);

    List<String> selectListByPermissionId(@Param("permissionId") Integer permissionId);

    Integer insertBatch(@Param("bindingIdRequest") PublicBindingIdRequest bindingIdRequest);
}
